package com.mike.billingserver.entity;

import common.lib.core.CRUDEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDate;


/**
 * @author xiaozefeng
 * @date 2018-12-14 16:02
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "tb_bill")
public class Bill extends CRUDEntity {

    private static final long serialVersionUID = 5821652211558976713L;
    private String purpose;

    private BigDecimal amount;

    private String categoryId;

    private String imgs;

    private String location;

    private LocalDate happenedTime;

    private Integer year;

    private Integer month;

    private Integer day;

}
